package com.x.service.entity;

import java.io.Serializable;

/**
 * Created by H on 18/5/9.
 */

public class Chapter extends Base implements Serializable {
    public String title;
    public String body;
    public String cpContent;

    public Chapter(String title, String body) {
        this.title = title;
        this.body = body;
    }

    public Chapter(String title, String body, String cpContent) {
        this.title = title;
        this.body = body;
        this.cpContent = cpContent;
        if (this.cpContent != null && this.body != null) {
            if (this.cpContent.length() > this.body.length()) {
                this.body = this.cpContent;
            }
        }
    }
}